<?php 

/* Vanilla Journal
 * vj.viewall.php
 * Weizhong Yang
 */

   $this_volume = $_GET['volume'];
   $volume = new volume($this_volume);
   $volume->error();
   vj_header();
   $posts = $volume->volume_posts;
   if($posts) {
      foreach($posts as $post) {
	 $id = $post['ID'];
	 $post = new post($id);
	 vj_post_all();
      }
   }

   vj_post_all_menu();
   vj_footer();
?>
